/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vue;

import entityprojet.Naturecg;
import entityprojet.NaturecgJpaController;
import java.util.List;

/**
 *
 * @author T.Ron
 */
public class NewMain {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
         NaturecgJpaController ncg = new NaturecgJpaController();
        List<Naturecg> lncg = ncg.findNaturecgEntities();
        String[] tncg = new String[lncg.size()];
        for(int i=0;i<lncg.size();i++){
            tncg[i]= lncg.get(i).getNumnaturecg()+" "+lncg.get(i).getIntitulenaturecg();
            System.out.println(lncg.get(i));
        }
    }
}
